package com.situ.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// 声明这个类是SpringBoot的引导类
@SpringBootApplication
// @MapperScan扫描MyBatis Mapper接口类
@MapperScan("com.situ.springboot.mapper")
@EnableTransactionManagement
public class SpringbootApplication {

    // main方法是程序的入口
    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }

}
